VERSION 5.00
Begin VB.Form frmEmail 
   BackColor       =   &H00FFFFFF&
   Caption         =   "Email Notification"
   ClientHeight    =   3435
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5190
   Icon            =   "frmEmail.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   ScaleHeight     =   3435
   ScaleWidth      =   5190
   StartUpPosition =   1  'CenterOwner
   Begin VB.CommandButton cmdClose 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Caption         =   "Cancel"
      Height          =   315
      Left            =   2880
      MaskColor       =   &H0080C0FF&
      Style           =   1  'Graphical
      TabIndex        =   16
      Top             =   3000
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin VB.CommandButton cmdSave 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Caption         =   "Save/Exit"
      Height          =   315
      Left            =   1080
      MaskColor       =   &H0080C0FF&
      Style           =   1  'Graphical
      TabIndex        =   15
      Top             =   3000
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin VB.Frame fraEmail 
      BackColor       =   &H00FFFFFF&
      Caption         =   "Express Email"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000080FF&
      Height          =   2655
      Index           =   0
      Left            =   120
      TabIndex        =   19
      Top             =   120
      Width           =   4935
      Begin VB.CheckBox f1551 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "f1551"
         Height          =   255
         Index           =   1
         Left            =   4200
         TabIndex        =   8
         Top             =   1440
         Width           =   255
      End
      Begin VB.CheckBox f1551 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "f1551"
         Height          =   255
         Index           =   2
         Left            =   4200
         TabIndex        =   11
         Top             =   1800
         Width           =   255
      End
      Begin VB.CheckBox f1557 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Check3"
         Height          =   255
         Index           =   0
         Left            =   3240
         TabIndex        =   4
         Top             =   1080
         Width           =   255
      End
      Begin VB.CheckBox f1206 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Check3"
         Height          =   255
         Index           =   1
         Left            =   3240
         TabIndex        =   7
         Top             =   1440
         Width           =   255
      End
      Begin VB.CheckBox f1206 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Check3"
         Height          =   255
         Index           =   2
         Left            =   3240
         TabIndex        =   10
         Top             =   1800
         Width           =   255
      End
      Begin VB.CheckBox f1553 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Check3"
         Height          =   255
         Left            =   4200
         TabIndex        =   2
         Top             =   720
         Width           =   255
      End
      Begin VB.CheckBox f1556 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Height          =   255
         Left            =   4200
         TabIndex        =   5
         Top             =   1080
         Width           =   255
      End
      Begin VB.CheckBox f1554 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Check3"
         Height          =   255
         Left            =   3240
         TabIndex        =   1
         Top             =   720
         Width           =   255
      End
      Begin VB.TextBox f1201 
         Height          =   285
         Left            =   960
         TabIndex        =   0
         Top             =   720
         Width           =   1935
      End
      Begin VB.TextBox f1202 
         Height          =   285
         Index           =   0
         Left            =   960
         TabIndex        =   3
         Top             =   1080
         Width           =   1935
      End
      Begin VB.TextBox f1204 
         Height          =   285
         Index           =   1
         Left            =   960
         TabIndex        =   6
         Top             =   1440
         Width           =   1935
      End
      Begin VB.TextBox f1204 
         Height          =   285
         Index           =   2
         Left            =   960
         TabIndex        =   9
         Top             =   1800
         Width           =   1935
      End
      Begin VB.CheckBox f1551 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "f1551"
         Height          =   255
         Index           =   3
         Left            =   4200
         TabIndex        =   14
         Top             =   2160
         Width           =   255
      End
      Begin VB.CheckBox f1206 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Check3"
         Height          =   255
         Index           =   3
         Left            =   3240
         TabIndex        =   13
         Top             =   2160
         Width           =   255
      End
      Begin VB.TextBox f1204 
         Height          =   285
         Index           =   3
         Left            =   960
         TabIndex        =   12
         Top             =   2160
         Width           =   1935
      End
      Begin VB.Label Label30 
         Alignment       =   2  'Center
         BackColor       =   &H00FFFFFF&
         Caption         =   "Delivery notification"
         Height          =   375
         Left            =   3840
         TabIndex        =   27
         Top             =   240
         Width           =   855
      End
      Begin VB.Label Label28 
         Alignment       =   2  'Center
         BackColor       =   &H00FFFFFF&
         Caption         =   "Shipment notification"
         Height          =   375
         Left            =   2880
         TabIndex        =   26
         Top             =   240
         Width           =   975
      End
      Begin VB.Label Label34 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Other 1:"
         Height          =   255
         Left            =   120
         TabIndex        =   25
         Top             =   1440
         Width           =   735
      End
      Begin VB.Label Label32 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Sender:"
         Height          =   255
         Left            =   240
         TabIndex        =   24
         Top             =   720
         Width           =   615
      End
      Begin VB.Label Label31 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Recipient:"
         Height          =   255
         Left            =   120
         TabIndex        =   23
         Top             =   1080
         Width           =   735
      End
      Begin VB.Label Label27 
         BackColor       =   &H00FFFFFF&
         Caption         =   "Email address"
         Height          =   255
         Left            =   960
         TabIndex        =   22
         Top             =   420
         Width           =   1455
      End
      Begin VB.Label Label29 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Other 2:"
         Height          =   255
         Left            =   120
         TabIndex        =   21
         Top             =   1800
         Width           =   735
      End
      Begin VB.Label Label72 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Other 3:"
         Height          =   255
         Left            =   120
         TabIndex        =   20
         Top             =   2160
         Width           =   735
      End
   End
   Begin VB.Frame fraEmail 
      BackColor       =   &H80000009&
      Caption         =   "Ground/FHD Email"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000080FF&
      Height          =   2655
      Index           =   1
      Left            =   120
      TabIndex        =   28
      Top             =   120
      Width           =   4935
      Begin VB.TextBox f1202 
         Height          =   285
         Index           =   1
         Left            =   1080
         TabIndex        =   17
         Top             =   840
         Width           =   2775
      End
      Begin VB.CheckBox f1557 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Check3"
         Height          =   255
         Index           =   1
         Left            =   4080
         TabIndex        =   18
         Top             =   840
         Width           =   255
      End
      Begin VB.Label Label1 
         BackColor       =   &H00FFFFFF&
         Caption         =   "Email address"
         Height          =   255
         Left            =   1080
         TabIndex        =   31
         Top             =   600
         Width           =   1455
      End
      Begin VB.Label Label71 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Recipient:"
         Height          =   255
         Left            =   120
         TabIndex        =   30
         Top             =   840
         Width           =   855
      End
      Begin VB.Label Label69 
         Alignment       =   2  'Center
         BackColor       =   &H00FFFFFF&
         Caption         =   "Shipment notification"
         Height          =   375
         Left            =   3720
         TabIndex        =   29
         Top             =   360
         Width           =   1095
      End
   End
End
Attribute VB_Name = "frmEmail"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim m_bGround As Boolean
'---------------------------------------------------------------------------------------
' Procedure : cmdClose_Click()
' DateTime  : 2/18/2004
' Purpose   : Close button hides form
'---------------------------------------------------------------------------------------
'

Public Sub Save()

    Call cmdSave_Click

End Sub
'

Private Sub cmdClose_Click()
    Me.Hide
    frmShip.SetFocus
End Sub

'---------------------------------------------------------------------------------------
' Procedure : cmdSave_Click()
' DateTime  : 2/18/2004
' Purpose   : Save button assigns Email fields to global vars.
'---------------------------------------------------------------------------------------
'
Private Sub cmdSave_Click()
    g_str1201 = f1201                                       'Shipper Email
    If m_bGround Then
        g_str1202 = f1202(1)                                'Recip Email Ground/FHD
    Else
        g_str1202 = f1202(0)                                'Recip Email Express
    End If
    g_str1204_1 = f1204(1)                                  'Other Email 1
    g_str1204_2 = f1204(2)                                  'Other Email 2
    g_str1204_3 = f1204(3)                                  'Other Email 3
    If f1206(1) = 1 Then
        g_str1206_1 = "Y"                                   'Other Ship Alert 1
    Else
        g_str1206_1 = ""
    End If
    If f1206(2) = 1 Then
        g_str1206_2 = "Y"                                   'Other Ship Alert 2
    Else
        g_str1206_2 = ""
    End If
    If f1206(3) = 1 Then
        g_str1206_3 = "Y"                                   'Other Ship Alert 3
    Else
        g_str1206_3 = ""
    End If
    If f1551(1) = 1 Then
        g_str1551_1 = "Y"                                   'Other POD Alert 1
    Else
        g_str1551_1 = ""
    End If
    If f1551(2) = 1 Then
        g_str1551_2 = "Y"                                   'Other POD Alert 2
    Else
        g_str1551_2 = ""
    End If
    If f1551(3) = 1 Then
        g_str1551_3 = "Y"                                   'Other POD Alert 3
    Else
        g_str1551_3 = ""
    End If
    If f1553 = 1 Then
        g_str1553 = "Y"                                     'Shipper POD Alert
    Else
        g_str1553 = ""
    End If
    If f1554 = 1 Then
        g_str1554 = "Y"                                     'Shipper Ship Alert
    Else
        g_str1554 = ""
    End If
    If f1556 = 1 Then
        g_str1556 = "Y"                                     'Recip POD Alert
    Else
        g_str1556 = ""
    End If
    If f1557(0) = 1 Or f1557(1) = 1 Then
        g_str1557 = "Y"                                     'Recip Ship Alert
    Else
        g_str1557 = ""
    End If
    Me.Hide
    frmShip.SetFocus
End Sub
'---------------------------------------------------------------------------------------
' Procedure : Form_Activate()
' DateTime  : 2/18/2004
' Purpose   : When the form is shown the correct frame is shown for Express or Ground/FHD
'---------------------------------------------------------------------------------------
'
Private Sub Form_Activate()
    If Left(frmShip.f1274, 2) = "92" Or Left(frmShip.f1274, 2) = "90" Then
        fraEmail(1).Visible = True
        fraEmail(0).Visible = False
        m_bGround = True
        f1202(1).SetFocus
    Else
        fraEmail(1).Visible = False
        fraEmail(0).Visible = True
        m_bGround = False
        f1201.SetFocus
    End If
End Sub
'---------------------------------------------------------------------------------------
' Procedure : Form_KeyDown()
' DateTime  : 2/17/2005
' Purpose   : Enter key pressed sends a TAB to move to next field
'---------------------------------------------------------------------------------------
'
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If Not TypeOf Me.ActiveControl Is CommandButton Then
        If Shift = 0 And KeyCode = 13 Then
            SendKeys "{TAB}"
        End If
    End If
End Sub

